<head>
	<title>轮播图</title>
</head>
<div id="dcMain">
	<!-- 当前位置 -->
	<div id="urHere">DouPHP 管理中心<b>></b><strong>轮播图</strong> </div>
	<div class="mainBox imgModule">
		<h3>轮播图</h3>
		<table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
			<tr>
				<th>添加轮播图</th>
				<th>轮播图列表</th>
			</tr>
			<tr>
				<td width="350" valign="top">
					<form action="index.php?m=admin&c=banner&a=add" method="post" enctype="multipart/form-data">
						<table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableOnebor">
							<tr>
					          <td><b>轮播图名称</b>
									<input type="text" name="show_name" value="" size="20" class="inpMain" />
					          </td>
					         </tr>
							<tr>
								<td><b>轮播图图片</b>
									<input type="file" name="show_img" class="inpFlie" /> </td>
							</tr>
							<!--<tr>
						          <td><b>链接地址</b>
						           <input type="text" name="show_link" value="" size="40" class="inpMain" />
						          </td>
						         </tr>-->
							<tr>
								<td><b>排序</b>
									<input type="text" name="sort" value="" size="20" class="inpMain" />
								</td>
							</tr>
							<tr>
								<td>
									<!--<input type="hidden" name="token" value="79db104d" />-->
									<input name="submit" class="btn" type="submit" value="提交" />
								</td>
							</tr>
						</table>
					</form>
				</td>
				
				<td valign="top">
					<table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableOnebor">
						<tr>
							<td width="100">轮播图名称</td>
							<td>图片</td>
							<td width="50" align="center">排序</td>
							<td width="80" align="center">操作</td>
						</tr>
						<?php foreach($this->banner as $val):?>
						<tr>
							<td>
								<?php echo $val['banner_name'];?>
							</td>
							<td><img src="<?php echo $val['banner_src'];?>" style="width: 200px;height: 50px;"></td>
							<td align="center">
								<?php echo $val['banner_sort'];?>
							</td>
							<td align="center">
								<a href="index.php?m=admin&c=banner&a=edit&id=<?php echo $val['id']?>">编辑</a> |
								<a href="index.php?m=admin&c=banner&a=delete&id=<?php echo $val['id']?>">删除</a>
							</td>
						</tr>
						<?php endForeach;?>
					</table>
				</td>
			</tr>
		</table>
	</div>
</div>